Turn on Tapo Smart Bulb
(28 actions, 16 KB)
0 If
[DeviceDetails
’s OS
]
is
macOS
1 Open App
com.tplink.tapo
SelectedApp
:
{ "BundleIdentifier": "com.tplink.tapo", "Name": "Tapo", "TeamIdentifier": "5Q6S22W72F" }
2 End If
3 If
[Shortcut Input]
has any value
4 Set Variable
Color
to
[Shortcut Input]
5 ToolboxProForShortcuts > IsTheSunUpIntent »
location
:
{ "isCurrentLocation": true }
6 If
[5 Is the sun up
as Boolean
]
is true
7 Number
40
8 Otherwise
9 Number
90
10 End If »
11 Set Variable
Brightness
to
[10 If Result]
12 If
[Color
’s Name
]
is
Warm White
13 tapo > TapoBulbColorSetIntent
color
:
temp_warm_white
brightness
:
[Brightness]
devices
:
{ "identifier": "b8d9fccb6b0ba4f95b81d5ea1256a372", "displayString": "Smart Bulb (大工作室)" }
ShowWhenRun
:
false
14 End If
15 If
[Color
’s Name
]
is
Neutral White
16 tapo > TapoBulbColorSetIntent
color
:
temp_neutral_white
brightness
:
[Brightness]
devices
:
{ "identifier": "b8d9fccb6b0ba4f95b81d5ea1256a372", "displayString": "Smart Bulb (大工作室)" }
ShowWhenRun
:
false
17 End If
18 If
[Color
’s Name
]
is
Red
19 tapo > TapoBulbColorSetIntent
color
:
red
brightness
:
[Brightness]
devices
:
{ "identifier": "b8d9fccb6b0ba4f95b81d5ea1256a372", "displayString": "Smart Bulb (大工作室)" }
ShowWhenRun
:
false
20 End If
21 Otherwise ▵
3
22 Comment
Default State
23 tapo > TapoDeviceToggleIntent
devices
:
{ "identifier": "b8d9fccb6b0ba4f95b81d5ea1256a372", "displayString": "Smart Bulb (大工作室)" }
state
:
on
ShowWhenRun
:
false
24 End If
25 If
[DeviceDetails
’s OS
]
is
macOS
26 Hide App
App
:
{ "BundleIdentifier": "com.tplink.tapo", "Name": "Tapo", "TeamIdentifier": "5Q6S22W72F" }
27 End If